package com.neulogistics.core.substation.api.application.viewmodel;

import com.neulogistics.core.substation.domain.model.enumeration.PaymentType;
import com.neulogistics.core.substation.domain.model.valueobject.Address;
import com.neulogistics.core.substation.domain.model.valueobject.CourierInfo;
import com.neulogistics.core.substation.domain.model.valueobject.CustomInfo;
import com.neulogistics.core.substation.domain.model.valueobject.OrderItem;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class SubstationPaymentViewModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 缴款单id
     */
    public String paymentId;

    /**
     * 缴款单类型：0:收款；1:退款
     */
    public Integer paymentType;

    /**
     * 所属分站id
     */
    public Integer substationId;

    /**
     * 对应任务单id
     */
    public String taskId;

    /**
     * 配送员 {userId，name}
     */
    public CourierInfo courierInfo;

    /**
     * 订单客户信息，{客户id、客户名、客户电话}
     */
    public CustomInfo customInfo;

    /**
     * 订单项，数组[{商品id、名称、数量、单价、计量单位}]
     */
    public List<OrderItem> orderItems;

    /**
     * 总额
     */
    public Double paymentTotal;

    /**
     * 生成时间
     */
    public Date createTime;
}
